package com.xinhe.web.service;

import com.xinhe.web.entity.AdapaySettleAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdapaySettleAccountService {
   /* @Autowired
    private IAdapaySettleAccountDao adapaySettleAccountDao;

    public PageResult<AdapaySettleAccountView> pageAdapaySettleAccount(AdapaySettleAccountQuery query) {
        Integer total = Integer.valueOf(0);
        if (0 < query.getLimit().intValue()) {
            total = this.adapaySettleAccountDao.countAdapaySettleAccount(query);
        }
        List<AdapaySettleAccountView> views = null;
        if (0 < total.intValue() || 0 >= query.getLimit().intValue()) {
            views = this.adapaySettleAccountDao.pageAdapaySettleAccount(query);
        }
        if (0 >= query.getLimit().intValue()) {
            if (null == views) {
                total = Integer.valueOf(0);
            } else {
                total = Integer.valueOf(views.size());
            }
        }
        return new PageResult(total, views);
    }


    protected IBaseDao<AdapaySettleAccount> getRealDao() {
        return (IBaseDao<AdapaySettleAccount>)this.adapaySettleAccountDao;
        }*/
}
